
import java.io.IOException;
import java.util.Vector;
import javax.xml.crypto.Data;

import jpcap.JpcapCaptor;
import jpcap.NetworkInterface;
import jpcap.PacketReceiver;
import jpcap.packet.IPPacket;
import jpcap.packet.Packet;

public class PcapReader {

    public static void main(String[] args) throws IOException {
        JpcapCaptor captor = JpcapCaptor.openFile("slowdownload.pcap");
        while (true) {
            Packet packet = captor.getPacket();
            if (packet == null || packet == Packet.EOF) {
                break;
            }
            System.out.println(packet);
        }
        captor.close();
    }
}
